package com.spring.mapper;

import com.spring.bean.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

//告诉spring这个接口的代理对象Mybatis负责产生了
@Mapper
public interface EmpMapper {
    @Select("select * from emp where empstate=1")
    List<Emp> findAllEmp();
}
